const Mock = require("mockjs");

const data = Mock.mock({
  "list|10": [
    {
      url: "@image(120x80, @color, img)",
      title: "@ctitle",
      desc: "@cword(10, 20)",
      "price|100-200": 1,
      id: "@id",
    },
  ],
  userList: [
    {
      username: "qwer@qq.com",
      password: "123456",
      avator: "@image(30x30)",
      nickname: "秒杀",
    },
    {
      username: "admin",
      password: "admin",
      avator: "@image(30x30)",
      nickname: "管理员",
    },
  ],
});

module.exports = data;
